package com.ljb.nfcreadandwritedemo;

import android.os.Bundle;
import android.view.View;

import com.ljb.nfcreadandwritedemo.read.ReadMUActivity;
import com.ljb.nfcreadandwritedemo.read.ReadTagIdActivity;
import com.ljb.nfcreadandwritedemo.read.ReadTextActivity;
import com.ljb.nfcreadandwritedemo.read.ReadUriActivity;
import com.ljb.nfcreadandwritedemo.write.WriteMUActivity;
import com.ljb.nfcreadandwritedemo.write.WriteRunAppActivity;
import com.ljb.nfcreadandwritedemo.write.WriteTextActivity;
import com.ljb.nfcreadandwritedemo.write.WriteUriActivity;

public class MainActivity extends BaseNFCActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.bt_write_text:
                start(WriteTextActivity.class);
                break;
            case R.id.bt_read_text:
                start(ReadTextActivity.class);
                break;

            case R.id.bt_write_mu:
                start(WriteMUActivity.class);
                break;
            case R.id.bt_read_mu:
                start(ReadMUActivity.class);
                break;
            case R.id.bt_write_uri:
                start(WriteUriActivity.class);
                break;
            case R.id.bt_read_uri:
                start(ReadUriActivity.class);
                break;
            case R.id.bt_write_runapp:
                start(WriteRunAppActivity.class);
                break;
            case R.id.bt_write_id:
                start(ReadTagIdActivity.class);
                break;
        }
    }
}
